Refactor CLProgram kernel param related code

Adds a new KernelParam class function.