FIX: resample to single group with custom function
Merge pull request #4494 from Komnomnomnom/resample-sing-grp-bug

FIX: resample to single group with custom function