Fix NOT precedence

And reorder Expression2 to ensure pattern expressions are considered
before expressions in parenthesis