CUDA: Fixed bug in as() kernel for scalars.