Tests show that interfaces passed from IXMLDOMDocument::createXXX methods have 2 refcount. Releasing document doesn't change its orphans refcount, so I'm not sure how it's supposed to be freed. Probably we should leak unlinked nodes.