Fixed issue with scalar while.
Merge branch 'master' of https://github.com/AccelerateHS/accelerate-cuda into frederick