Fixed bugs in ScalarNode for CUDA and OpenCL JIT backends
Unary math functions convert arrays to floating point arrays
Merge pull request #123 from pavanky/jit_fixes

Jit fixes for CUDA and OpenCL backends