Fix incorrect array iterators

@mcanevet quite rightly pointed out these corrected issues... Strangely they
did't fail an erb syntax check.