[subset] Speed up a couple of set iteration loops Need to speed up set::next_range() for the second one to have any effect.