Iterate array-like objects as if were real arrays