Make optimization faster in debugmode.

We already disable the stack_trace_on_call in normal compilation.
Small opt in EquilibriumOptimizer
Better error message.