typed arrays: fix spec/browser compliance

See #4714.

Suggested reviewer: @indutny?