Trigger `onEnter` and `onLeave` only when state name changes. Tweak array check
Trigger `onEnter` and `onLeave` only when state name changes. Tweak array check

fschaefer/Stately.js,fschaefer/Stately.js