GROOVY-5988: Reference to for-loop parameter leads to type "Object" instead of declared type

Conflicts:
	src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java