for you (or future readers) this is how you do the array reduce
...
[{"id":"c815e9db.a393f8","type":"inject","z":"a9fbaedc.8f9c1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"255","payloadType":"num","x":170,"y":460,"wires":[["69d31ace.bab5cc"]]},{"id":"69d31ace.bab5cc","type":"template","z":"a9fbaedc.8f9c1","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"col1,col2,col3\nthis,1,that\nthere,2,then\nwhy,3,what","output":"str","x":310,"y":460,"wires":[["80935f54.3dc4c"]]},{"id":"80935f54.3dc4c","type":"csv","z":"a9fbaedc.8f9c1","name":"","sep":",","hdrin":true,"hdrout":"none","multi":"mult","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":450,"y":460,"wires":[["3be8855b.56d692","38d0540.06eefac"]]},{"id":"6869ab35.391d14","type":"debug","z":"a9fbaedc.8f9c1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":830,"y":460,"wires":[]},{"id":"3be8855b.56d692","type":"change","z":"a9fbaedc.8f9c1","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$sum(payload[*].col2)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":460,"wires":[["6869ab35.391d14"]]},{"id":"38d0540.06eefac","type":"function","z":"a9fbaedc.8f9c1","name":"reduce","func":"msg.payload = msg.payload\n .map(item => item.col2)\n .reduce((accumulator, currentValue) => accumulator + currentValue)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":590,"y":520,"wires":[["2967ff0.6194c02"]]},{"id":"2967ff0.6194c02","type":"debug","z":"a9fbaedc.8f9c1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":830,"y":520,"wires":[]}]