Correct the iteration in compress and generalize Tensor.__add__ to allow addition of zero