generic copy() function for StopTaskRaceModel
infrastructure for moving varwald to crace