xmlreader: move the node_type_name helper from the tests to libcainteoir