Okay, I'll have 2 replies.
First to address Matt's issues. It is more the way the trucks are attached to the car body and the way we now run trains that causes this problem with 027 switches. If you look at postwar photos, most trains are only a few cars long. Now with fast angle wheels we all tend to run longer trains, because of the lower resistance.
I long ago figured out much of the problem with 027 switches is the rivet mounting of the trucks. Pick up any train car and grab the end of the coupler and move it up and down and see all the movement you get. Now when you run a longer train backing up on 027 curves (and especially through switches) all the pressure of pushing the train backwards is on the couplers. If they're mounted loosely (as they are), they are prone to rolling upward on a curved rail, thus causing a derailment.
I remount the trucks of every single train car I have. On plastic trucks, I drill out the rivet, and remount the truck using a truss screw (pre-blackened for flat cars, gondolas) and a lock or stop nut. I tighten the screw all the way, and then loosen it just enough for the truck to move freely from left to right. Deraiments GONE.
One more issue, especially with used cars, is the wheel sets. Even buying a bulk bag of 50 wheel sets, I noticed some slop in the gauge of the wheels. There's no problem with this EXCEPT if wheels on the SAME truck have a slightly differing wheel gauge. This can cause a derailment on curves. Just make sure the gauge of the wheels looks the same for one pair of wheel sets on the same truck.
I've also experienced some locos jumping the track on 027 curves. The loco is OK running alone. But with the weight of a train, it jumps the curves. The fix is easy. I mount a small spring over the guide pin that fits into the curves slit in the loco frame.
The spring goes between the bottom of the frame of the top of the truck, where the pin sticks upward. I do this and derailments are gone.
On steamers like 4-4-2's, sometimes the front guide wheels will jump the track. Two fixs. Give a slight bend downward on the front guide truck or even better, I put a small magnet on the assemble that actually holds the two front guide wheels... derailments gone.