Circular-json apparently did not keep a good track of when an object
was finished, which causes completely wrong references to be made.

This was especially the case with empty arrays or objects.
And it should be fixed now.