In StateManager, use instanceof check instead old isState attribute. This is potentially breaking, but very unlikely to affect real-world code.

@lukemelia/@stefanpenner
Merge pull request #2853 from lukemelia/statemanager-cleanup

In StateManager, use instanceof check instead old isState attribute.