Fix precedence mismatch between stream/ternary operator.

Ternary operator has less precedence than stream operator.