Fix transition state consistency between before and after callbacks
Pre-release
Pre-release
The after callbacks had the already updated state instead of the one before the transition.
BC break: TransitionEvent::construct now takes the initial state as a 2nd argument.