bug fixes to cpuEvalLimitKernel.cpp (use unsinge ivalence in the correct places)

minor code cleanup

Note : there is still a resilient bug in the Gregory Boundary patch case