Fix for Safari NodeList Bug

This addresses issue #5 by adding a 2nd part to the condition that checks for input `Function` objects.

In Safari, `typeof document.querySelectorAll("a") === "function"`, which is wrong. A `NodeList` should be `typeof "object"`. In any case, this works around that bug.

I discovered this while working on a component of mine and testing out Safari/Windows.