Add function for merging together multiple assoc spaces

Hm. What does this comment refer to? It looks like the code is only using the previous Q.