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