Ensure consistent typing across operands of ?:

Completes earlier patch for #1
Merge pull request #11 from tautschnig/master

Ensure consistent typing across operands of ?: