Sync KernelGrad/KernelValue up to current state of Kernel, fix bug (#3492)