function ManagedArray(length) {
  length = length ?? 0;
  this._array = new Array(length);
  this._length = length;
}
A wrapper around arrays so that the internal length of the array can be manually managed.

@alias ManagedArray
@constructor
@private

@param {number} [length=0] The initial length of the array.