Corrected error when parsing kernel code and generating kernels with the template type system. Changed sampler to use our OpenCL version macro.