added NaN test for fmod
added failing NaN test for agrad/rev/fmod
fixed agrad/rev/fmod so gradients return NaN for NaN inputs
Merge branch 'feature/issue-845-fmod-nan' into feature/issue-847-fwd-functions-nan
fixed fmod so gradients return NaN for input NaN