Zero gradient when the output is an int.
Add grad testing in Mod[Inplace]Tester
Merge pull request #1 from lamblin/mod_derivative

Few changes to mod derivative