Fixed visual glitch with switch-state transitions

This solution distinguishes between two circumstances:

1. A same-state transition (must close substate)
2. A between-state transition (must keep substate open until switch state process closes it)

Rather than stick some sort of conditional parameter in transitionOut(), we instead set a flag in transitionToState(), which is then caught in finishTransOut(). This distinguishes the two use cases without presenting the user with any distracting parameters, etc.