Make hash merging recursive