disallowSpacesInConditionalExpression: Fix parens bug and add tests

Fixes #762