BUG: fix concat to work with more iterables (GH8645)
Merge pull request #8668 from waveform80/deque-concat

BUG: fix concat to work with more iterables (GH8645)