getAddNonzeros: simplify if the things added are constant zero