Adding support for logical and character types. Adding stubs for some array types.
Renaming dummy dimension arguments to eliminate clash with CUDA's dim3.