identity.hh: fix sparse gradient.
filter/product.hxx: fix gradient/Jacobian computation.