some modifications:
modified getClass (check for __class__ first)
only use __isNativeObj on objects
added fixed reference to {}.toString
added exclusions to __nativeClassName
removed __resolveNativeClass from Type.resolveClass (doesn't work)