TST:  Don't segfault when categorical groupby differs in length from series, GH3011
BUG: add length check on categorical grouper, GH3011
Merge pull request #3017 from y-p/GH3011

segmentation fault on groupby with categorical grouper of mismatched len