Generate code for GenericForStatement.