Here's my attempt at a fix,
We just store the type along with the value as the dict key, that way the hashes don't collide.
Also added a test to exercise the scenario.
Coverage remained the same at 65.892% when pulling 5cdb066ab6bfd0f28e7bd78a61f13bf4ff90d00d on Penguin2600:master into 7a6d76ada4b990b1951831a42a08924de5775c2d on stefankoegl:master.
Here's my attempt at a fix, We just store the type along with the value as the dict key, that way the hashes don't collide. Also added a test to exercise the scenario.
Closes #129