rewrite For loop generating code, slightly improve the loop performance
gu
fix loop variables
fix for loop index/isFirst/isLast