segmentation fault on groupby with categorical grouper of mismatched len

closes #3011