Clones circular object graphs in a non-recursive way