Fixed codegen for reduction clause.