Various OpenCL fixes.

Test cases include combinations of LWS=1 (or higher) with or without GWS=1
(or higher) as well as running vectorized or not.