Description
We construct necessary self-references in values returned by index scans; these cause problems for functions such as Size() and MarshalJSON() if called at the right point in the hierarchy as they traverse the links recursively and end up looping until stack space is exhausted.
The fix for this bug will break the link halting the recursive activity.