Type check arguments to NOT
Decrease precedence of NOT

Give NOT a higher precedence than AND, OR and XOR, but lower than
everything else.
Merge pull request #1284 from cleishm/not_precedence

Decrease precedence of NOT