use isZero()
do not assert when delinearization fails
correct the delinearization failing case

collect terms from affine and non affine memory accesses