Added AtomGroup cast to merge_selections.