opencl: move some common utility functions to separate module
opencl.util: extend array_to_spec to understand 3D arrays
opencl: finish implementation of level 1 transform