Fix for autoviv Typed hash problem

As suggested by jnthn.  I think there is a ticket for this, but do not know
its number.
Merge pull request #141 from lizmat/fixautovivtypedhash

Fix for autoviv Typed hash problem