Fixed datum_t::write_to_protobuf