added handling of class constants in constant evaluator