HACodeGen: Change workspace var to holder type for sum/count. Init in setup method. Modify code generation logic.