Change serialize to accept reference instead of pointer to xml_node