extended groupArrayUtils.group to group by multiple definitions