Add __instanceId attribute to instance.

Actions in cocos2d-html5 use __instanceId to do hashing.
It would crash in silence if this attribute is missing.
Update type definition.