Added some Cuda marshalling features to KernelRunner. Updated KernelWriter somewhat