Force uniqueness check inside isInGroups to prevent multiple group definitions from being returned. This should cut the size of the in-memory Group cache by 50%, since group id #3 is returned for _every_ group.