Added JAXP NodeImpl.toString()
Return owner doc when the type of Node.getParent() is Document.
Safe guards are overrided for difference with xmlNodePtr and xmlDocPtr
Null check on XPathContext.setContextNodeImpl
refactored little