small cleanup for ArrayGroupby
resolve stochastically(!) failing test on Python 3 (hopefully!)