Add special-casing for barray so it handles iterators as before