length in typedarray's constructor needs to multiplied by element size.