Convert nested default dictionaries to regular dictionaries.
This is needed to prevent yaml persistence issues.
defaultdict
A possibly nested set of defaultdict.
dict
A possibly nested set of dict.
ddict2dict()