fixes #43: throw an LogicException on un/-serialize an enumeration instance