added NaN test for pow
added failing NaN test for pow
fixed agrad/rev/pow so gradients return NaN if either input is NaN