for (iter in iterable) working for arrays