toLinearExpr
The new test exposes the problem fixed by this commit. In the termination proof we have two `sizeOf xs` terms that are not syntactically identical (only definitional equal) because the instances are different.