Detect cycles and combine array and object cases
Disregard read-protected elements
Grep object keys as well