#163 implemented as groupcountdistinctvalues, groupselectfirst, groupselectmin, groupselectmax; no tests