SimpleXML tests and a fix.

As per comments on previous PR #782 - the bugfix now passes ``hphp/test/zend/good/ext-simplexml`` tests.

Updated the ``1667`` test to include the same kind of behavior as the previously failing ``010`` test.

``1668`` is supposed to fail, would like input on how to implement this. See extended commit message for more info.