#2650: improved handling of factors in ConstantOptimizationEvaluator (create binary indicators only once)