For the mod I am developing wagons added to the back of the train via script based on the back_stock position do not always attach because of this. I can probably compensate for it if you don't want to fix it.
Train on curve, the snap point is offset and the wagons are intersecting

Train on straight track the snap point nicely matches the back of the train
