Serialize a bitflag value as a single flag name.
The serialize and deserialize functions will ensure that the value matches a named value.