array_keys does not work for ArrayAccess objects

The array_keys() function does not work on objects implementing \ArrayAccess. Skip listing the known properties for such objects.