BUG: groupby.rank for dt64tz, period dtypes
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

This sits on top of #38162
hmm, looks like CI is hanging, can you merge master and pin gon green. > hmm, looks like CI is hanging, can you merge master and pin gon green.

not merged master, but re-run an green