Updated grouping algo to made reel grouping by value instead of handle causing not a real grouping behavior because all handle are unique

The group will output 2 xml attribute, handle (will be the first unique handle found when grouping) and value (the grouped value used)