Fix C code of GpuDownsampleFactorMaxGrad.

It was causing errors when running with cuda-memcheck, or when running
on Mac OS X.
Fix comment and variable names after code review.
Merge pull request #1304 from lamblin/fix_gpudownsamplegrad

Fix C code of GpuDownsampleFactorMaxGrad.