typed array shim