CUDA fix for pr816

I am just passing the new array structure over to the cuda right now to make things work.  Later, we may consider specializing the array operations for CUDA.