Extracted reviewed OpenCL 1.2 related commits from !7241
Most of this MR is just about fixing some bugs and adding trivial features to prepare for full OpenCL 1.2 image support. The only "real" feature added is 1D image support, which is fairly trivial to add.
The main MR is here: !7241 (closed)