BUG:reorder type check/conversion so wide_to_long handles str arg for…
closes #22468
 
- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
