Fix buffer support when running under Browserify

When running under Browserify, a Buffer object may be an extension of a
Uint8Array. Fix the constructor to correctly recognize those objects
without creating a dependency on typed arrays