why would you use a reference as a key to a hash ?
references are ephemeral in many ways , what if you want to itertate over them later, when other items have taken the references that the old ones had when you made the hash ?
I think this is not a very good idea.