Fix hasProperty for objects that implement ArrayAccess.