Fix for ICE on dependent type var in private clause + some optimization of omp for codegen