remove unnecessary iterator_to_array which can cause memory exhaustion
Merge pull request #212 from shieldo/local_iterator

remove unnecessary iterator_to_array which can cause memory exhaustion