used limited vector for OpenCL dimensions

OpenCL interface now uses vectors with a maximum size of 3, because
the dimensions settings of OpenCL assume a one, two, or three dimensional space