PERF: improvements to random number genration in CPU backend
Wrapping af_get functions in AF_CHECK macro
PERF: improvements to random number generation in CUDA backend
PERF: improvements to random number generation in OpenCL backend

- Change incorrect macro check "T == double" to IS_DOUBLE
- Added try catch block around cl.hpp calls in random.hpp
- format changes to program.*
Merge branch 'devel' into perf
PERF: improvements to CUDA JIT when memory is linear
PERF: improvements to OpenCL JIT when memory is linear
EXAMPLE: Monte Carlo estimation of PI
BUGFIX: in JIT for CUDA backend

- Dimension check for linear index was incorrect
Merge pull request #180 from pavanky/perf

Performance improvements