dispayNamesInGroup(s) should always return uid as key in the result array, fixes #5209

Please review @schiesbn @icewind1991 @DeepDiver1975 or others