fixed up user_layer.component.write so that it has a NineML root element
in Unit.to_xml() offset needed to be converted to a str