added NaN test for round in agrad/fwd