Fix incorrect 'if' optimization
Add a test for logical operator precedence
Fix parsing of logical expressions

Do not ignore max_precedence in calls to parse_logical.
Merge pull request #73 from mpeterv/fix-logical-precedence

Fix parsing of logical expressions
Merge pull request #72 from mpeterv/fix-if-optimization

Fix incorrect 'if' optimization