support arbitrary metadata elements in nexml_write