added NaN test for abs
update nan test for agrad/rev/abs
added NaN test for agrad/fwd/abs
cherry-pick agrad/fwd/functions/value_of from GeneralizeOperandsAndpartials Branch