Fix some logic errors around resolving unary operators
Fix some logic errors around resolving unary operators

carabina/DDMathParser,davedelong/DDMathParser,carabina/DDMathParser,mrackwitz/DDMathParser,davedelong/DDMathParser,mrackwitz/DDMathParser