Fixed issue with setting groups with an array on User entity