Fixes for the siblings comparison.

The children property is not a function, and the property is a NodeList, not an Array, so we need to slice it to get an Array. In IE9, we can simplify things a bit by not re-implementing Array.prototype.filter.