Improved version of Combinations.h.

This fixes double free crashes in certain enumerations of pure O
sequences in two variables.