Per #2930 use better error message
Distinguish grouped & non grouped cases in errmsg
Handle case of grouped data with only one group
Add edge detection cases for bizarre size limits
Disallow bizarre size limits