Add a merge method to Compilations.

Also fixed a cut-n-paste mishap in Relations.
Merge branch 'compilations' into fix_split_merge
WIP