Fix handling of enums in dictionaries on 64 bit architectures.