Fix check for instanceof Uint8Array in IE9 

Fix #2687 and #2617
Merge pull request #3334 from benbro/master

Fix check for instanceof Uint8Array in IE9