Made duck typing not apply to the Statechart class object

Stativiz needs to descend into the window object and reliably find a state chart. Stativus.Statechart would in some cases appear since .isStatechart was used as a the criterion for identifying a statechart. This will correct that.