Enable CUDA's copy_if in __device__ code.
Test copy_if algorithms with thrust::seq and thrust::device in __device__ code.