Converts deeply nested Virtus objects or any objects responding to attributes into hashes and arrays.