Backports OrderedDict.