Add a doFor function

Modelled after the similarly named function in HUMP: http://vrld.github.io/hump/#hump.timerdo_for