Fix extruded loop code generation for direct loops.