fixed nexml_read function, first toplevel_api test should now work