Fix SimpleXMLElement constructor and clone

Fixed crash when using XPath on SimpleXMLElement created by constructor.
Fixed crash when using XPath on the cloned SimpleXMLElement.

Fixes https://github.com/facebook/hiphop-php/issues/1067