Fixed NodeTypeDefinition::fromXml + added a test for it