Collapse now only stores a list of collapsed ids
Modify to_hdf5 so it correctly formats collapsed_ids
Merge pull request #507 from josenavas/issue503

Collapse stores a list of original ids