Falls back to Object.prototype.valueOf if it is not present on the value

example: A `StaticNodeList` in ie8 does not have a valueOf method
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>