GPU Calc: support reductions without uniform window sizes

Change-Id: Iddd7a1bbc51f02b6b950c34afd9cbe95ec09bbf9
GPU Calc: Fix COUNT() regression

Change-Id: I1b313d7f5f144f1884abe60c816db1fd6a643489