Merging for arrays inside dictionaries and vice versa.