Fix for Issue #313

Grouping should be able to traverse object structures that has cyclic references