Few bugs fixed & default target in templates added

Incorrect openfl project binfing in template
incorrect iterator var modification removed