This should get scan working with non-float32 inputs/outputs in gpuarray.

It should also not break the old cuda backend.