speculative performance fix for array performance issue

This check to see if we are working with a `Uint8List` type before doing a bunch of js interop (which may not be necessary).

@financeCoding