Fix a bug that caused Grouping to return non distinct keys (and groupings) due to paging in case of memory execution of unsupported functions.