Fixes #663

Reverts zhash_foreach to using the old deprecated function signature so apps don't break.