Revert "Don't just use array references to resolve recursion - keep the references to find occurrences of the same array (by reference) later. Used for $GLOBALS."

This reverts commit 4769dd99b2b89c1a6b70eb4d4d19f85a0357ed1e.