Add HashIterator.

Current hash iteration behavior left intact for temporary back compat; it will be removed later.

This fixes CLOWNFISH-2.