Use proper type-name in the sizeof() during deserialization.

This matches the type-name used in _write_buffer() when cache is
serialized. Note that this is only a code clean-up as the enum
has a size of an int.