[optim] swtich typedarrays to std arrays

This makes the boundary check in v8 pass, thus preventing
a deoptimization.