Fix for nested ternaries
Merge pull request #119 from pangloss/hotfix/nested-ternaries

Fixes nested ternaries