Reactivated the OpenCL tests.

There is now a check if the hardware supports 3D images and the test data is created accordingly. Also fixed a minor bug in GetMaximumImageSize().
Merge branch 'bug-18303-FixForUnsupportedDimension'