Fix for issue #258: toEqual goes into infinite recursion for cyclic data