Added utility to merge dictionaries.