Tweaks to StateMachine CTOR signature. Add `strict` setting to reject `on` and `notify` requests if a state hasn't been previously defined.