Some dict instances are replaced with collections.OrderedDict.