fixing issue #31: serialization issue with enums