The new test and comment at src/library/equations_compiler/util.cpp explains the issue.
to_unfold
simplify
simp*