Mixed-Context array checking fails, use Array.isArray

When data comes in from a different context, data instanceof Array will return false, and render indexed keys as a xml node. (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof)

Array.isArray isn't affected by this.