Uncomment check for isresolved for codegenning c for loop

This is needed for --no-inline. You need to generate the function call in the
loop header.