REGR: Fix IntervalIndex.map when result is object dtype
- [X] closes #31202
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

No whatnew since this is a regression.

thanks @jschendel 