Fixed aggregate_by bug for single values coordinates.

Closes #1183.
This doesn't look right to me. I'd have thought you'd get
```python
AuxCoord(['a|a', 'a'], long_name='bar')
```