Updated getArray to use iterators - faster

+ WIP version of setArray