Bug 1001547 - Fix a bug in typed array element-setting.  r=sfink