compatibility fix for IE8

- Object.defineProperty is not available in IE8
- isArray polyfill was wrong