fixed bug in grouping.groupn gkwargs type detection