Allocate special memory when copying a batch
Description
When calling copy_to, allocate special memory if the original batch had special memory (i.e. aligned memory on CPU, pinned memory on GPU).
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.