Fix references to robot and viewer so that the planning problem uses the cloned versions and not the base version that is only kept around to save having to reload the robot XML model each time.