Fixed visual glitch with switch-state transitions

Fixes a glitch where a state-transition results in a visual gap after the out transition has played but before the new state is loaded.

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.