Merge "Fix merge_dicts logic for the case of two nonempty lists"