Fix IE's JSON.stringify encoding an Array object from another window as an object