Fix multi-frame functionality

This update implements `nodeName` checks instead of `instanceof`,
to assert if a value is a node, and adds an `isArrayLike` method.