-Fix [FS#6006]: Cleanup and also consider multiheaded trains in station refit.