Fix for IE7 compatibility

IE7 doesn't support Array.isArray(). Use object.prototype instead.