If we find a function or dom node, do not stringify those.

Return {} if it is a dom node because that is what FireFox seems to do. Do not stringify a function either, not sure if it would have but the mozilla doc says it ignores functions and xml so making sure this does too.