fixed bug in assign option to stats

Code was assigning extra properties to `list` but not returning the output. Also, data were being wrapped in a list to use `reduce` but not unwrapped on return. This buried the data an extra level deep in `items` when `assign: true` was set, resulting in failure to render.