Serializes a concrete NavKey implementation.
It writes the object's fully qualified class name (type) first, then uses the object's runtime serializer to write the object's data (value).
type
value