Add function for merging together multiple assoc spaces

This is now fixed, in a slow, simple way.