typedef support for hashOf
Merge pull request #932 from IgorStepanov/newaa-hashof-fixes

[new AA] core.internal.hash fixes