Fix conditional expression precedence problem

Fixes #251.