Update iteration syntax

Support for the ruby-like iteration syntax has been dropped. This patch
updates to the new syntax.