Fix logic for indexing the Y axis for 2-D arrays. Use the input array size, rather than the ROI size, which was wrong. Tested this logic by comparing with a normal ROI plugin and Stats plugin, and I get the same results for a 2-D input array.