Fix sub-buffer support in OCL stub