Ensure the right values are set in SeriesGroupBy.nunique
We only need to use the group boundaries as the index for `res` so that
the dimensions match those of `out`. Fixes #13453

 - [x] closes #13453
 - [x] tests added / passed
 - [x] passes ``git diff upstream/master | flake8 --diff``
 - [ ] whatsnew entry
