Avoid infinite recursion when a group contains itself, directly or indirectly