Precedence-related bug fixes.

* "==" takes precedence over "&"
* "+" takes precedence over "<<"