added support for for-loops.

Change-Id: I146a99aa008dd4b39b4f59c2111465f5a255594a