Support writing subclasses of the header field types