Added a depth limit (arbitrary for now) for traversing objects when mocking.