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 #146 from lizmat/autovivtypedhash

Fix for autoviv Typed hash problem