Allow gotoState to pass arguments to the new state.