Internal modification to forloop

Increment forloop index on compilation and reset them for delta
execution
Merge pull request #138 from junmendoza/DefectFixBranch

Internal modification to forloop