adding missing wantop flag and some related parentheses code
adding testcase for various parentheses and ternary combinations which to test the newly refactored code; includes some cases not hit by xonotic