#1356 Changed array reduce polyfill

Fix for #1356