Serialization of NamedName.