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