Check if an object is an array or a typed array