Add #path_hash getter to Mapping

This is only temporary, but makes find_by path_hash work.