Fix issue with type-checking UInt8Array directly