Fix check for instanceof Uint8Array in IE9 

Fix #2687 and #2617