Checking instanceof Arrays cross frames. fix  #1195

instanceof Array, will not work on arrays created cross frames.
Array,isArray is the method to check if an object isArray across frames.
IE8 does not suppoort the Array.isArray method, so we have to create a shim to support all browsers.