Allow custom SimpleXMLElement implementation in simplexml_load_string.

Fixes #443.