Fixed problem with variable declarations in initialisation step of a for loop
expanded 'for loop' initialisation fix to 'for in' loops