Fixes hashing ExtensionArrays which factorize to scalar objects with __getitem__ attr
- [ ] closes ##24167
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
