Mark OrderedDict import for no cover.
Simplify _enum_count implementation.
Fix picklability of cache.