using TypedArray.set() to fill arrays with identity values