Change is_array() checks to instanceof Traversable
Change is_array() checks to instanceof Traversable

To better align with Hack, change checks inside `appendChild`,
`prependChild`, `replaceChildren`, and `setContext` from `is_array()`
to `instanceof Traversable`. This will allow for uses of `Map`,
`Vector`, `Set`, etc.

facebook/xhp-lib