Fix SerialDataHandling.swap to work with OpenCL

8 jobs for opencl-fixes in 9 minutes and 42 seconds (queued for 3 seconds)