Bug fixes for unravel of state streamflow and grid/array indexing

unraveling of convolution ring now uses appropriate offset of (now-1-d['end'])

There were a few typos left over after the initial debugging of the grid outputs.
Mainly, these effected the writing of array formated outputs.

The script is running fine now for both array outputs and grid outputs.