feat($parse): allow for assignments in ternary operator branches

Closes #8512
Closes #8484
CLoses #5434