Adapt to Typed array API changes