fix hash iterators in factories (use java ones style)