some cross browser fixes

- toString.call([]) angers IE, use Object.prototype.toString instead
- getPrototypeOf polyfil