#1976: Updated constant optimization evaluator to allow optimization of subtraction and added a parameter stating if constants should be updated in the tree.