The two methods above are not necessary if `Array` is changed to `AbstractVector`.