add hash overloading to xml2Hash-type classes