Fix run(Worker)Task(H)(Dist) to not destroy arguments passed in by reference. Fixes #862.