Support ternary operator in expressions, fixes #47