Check if something is a Node.js Buffer or TypedArray