TEST: groupby(as_index=False, sort=False).aggregate formerly (?) gave unexpected results with a list-like function
- [x] closes #18473
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
