Fix tests for GpuCAReduce and a type error in some nan cases.