Polyfill for JavaScript-1.8.5 Array generics and ECMAScript-5 Array extras