Ternary operator should have lower precedence than assignment. Fixes #42.
Notation switching should only work at beginning of line. Fixes #45