fixed isPrototypeOf(arg) issue where arg is a proxy