[subset] Fix broken cmap creation. It was ignoring the restriction that gids must be consecutive to be placed into a single group.