Copy from/to CUDA Array

From !58 (merged)

Edited by termoshtt