allow access of attributes through t___get

This allows the user to access a node's attribute through
attributes()->some_attribute.

This does not fix the fact that SimpleXML considers attributes to be
actual SimpleXML nodes, rather than just strings. In practice this
should not matter. Such a fix would deserve its own commit.
Merge branch 'simplexml-full'