added failing NaN test for agrad/rev/trunc
fixed agrad/rev/trunc so NaN test passes