added querying for all constants belonging to a class or a module