Fixed/clarified the order in which CompositeState's callbacks are
called.

Checkpointing before addressing an issue caused by nulling out
currentState in StateMachine.exitState().