types: Add STL-compliant Hash functor for Qt types