Detect circular references that would lead to infinite recursion and/or provide a max depth option.
Detect circular references that would lead to infinite recursion and/or provide a max depth option.