In GroupingIterator::hashNext(), do the matching sanity check over all groupings before
actually creating the groupings.