Add a compatibility layer for OrderedDict