On on the old IDIs, if the water-separator was full of water, or the fuel pump screen was clogged, the car would cut out going around corners or below a hlf tank. I'm not sure what your car has, but I'm going to assume that it at least has a water separator on the bottom of the fuel filter. I'd drain that completely and or replace the filter. There may also be another separator under the car (again, not sure).
If the engine runs fine except for cutout at 1/2 tank, then it can't be anything major. The old engines were ok with some unleaded (the manuals for the old Rabbits encouraged you to mix 10-30 % unleaded in the winter to prevent gelling). So, the unleaded is not the issue. I think that you might be getting straight unleaded at times. Either they didn't drain the tank completely, or there's unleaded in the filter. Presumably, gas is less dense than diesel, so if there's still some gas in there (about a half a tank?), then the transer pump will be pulling diesel from the bottom of the tank, then it hits the unleaded and cuts out.
Either way, it's a toughie. I'd check the filter/separator first. I don't know what electronic mechanisms the newer cars may have that would cut out the fuel. But based on the old cars, and what you're describing, then it shouldn't be anything major. And to be honest, I don't know how the transfer/lift pump could be affected by gas fuel. It's just another liquid, and the dealer probably didn't need to replace it. My best bet is that the filter is full of str8 gas.
Let us know how it goes.