Add first vertex in match group to the head of the group, so indices are consequetive (might have a small performance benefit, and looks more like official nifs).