fixed apparently long-standing bug in evaluator for scalar constants
the bug would cause inequalities over null constants and class constants to be evaluated the wrong way around