internals: import OrderedDict from compat

Fixes py26 tests.