added NaN test for fmod
added failing NaN test for agrad/rev/fmod
fixed agrad/rev/fmod so gradients return NaN for NaN inputs