Bibrank selfcites fix

hash() are not stable across runs so I am using a different way to associate ids.