The fix was fairly simple and just involved changing the if
statement in 'to_hash' to make sure it checked for text and cdata.
In addition, I copied over the nokogiri test suite just to make
sure there was some basic test coverage for LibXML ruby and to
verify that this fix does indeed work.