DownsampleFactorMax support strides: issue #2196

Idem, that should be `(r - ds[0]) % st[0]` in both cases, and the same thing for `c`.