AbstractArray doesn't capture the element type of a UnitRange

This is indeed the issue. Thanks!