mod derivative
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
Merge pull request #1601 from joschu/master

mod derivative