Consider primary groups when reading group members

It should be checked that the uid is not already included in uids. AFAIS that should be the "normal" case where the primary group of a user in included in the secondary groups.