check_gmvar: Checks whether the given object has class attribute 'gmvar'
Description
check_gmvar
checks that the object has class attribute 'gmvar'.
Usage
check_gmvar(object, object_name)
Arguments
object_name
what is the name of the object that should of class 'gmvar'?
Value
Throws an error if the object doesn't have the class attribute 'gmvar'.