Ternary operator should have lower precedence than assignment. Fixes #42.