Added cross-browser isArray for cross-frame support. fixes #1195. closes #1218