BUG: Fixed issues with atan2 in CUDA and OpenCL backends

- This should fix issue #236
Merge pull request #240 from pavanky/atan2

BUG: Fixed issues with atan2 in CUDA and OpenCL backends