Maintain expression precedence

We need to surround expressions with parentheses to guarantee that Swift
precedence is preserved.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Support XOR

SQLite may not, but we can.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>