Do not crash when doing as_tag_from_string(NULL)
trivial: Add some asserts for as_node_insert()
Do not write provides with an unknown kind