Fixing a few issues in IE with arrays