Fixed array iterator, added regression test