Support for multiple dictionary iterators, fixed memory leak