Handle NaN correctly in NumberValue.

If the value is set to NaN and the value is already NaN and a force is not requested, an update
dispatch should not occur. In Flash, NaN is always not equal to anything, including NaN, so a more
complex comparison is required.