Added 'on_opt_error=pdb' to fall into pdb on error

This makes it easier to debug crashes in optimizations.

I don't see how this could be tested automatically, but I manually tested it by adding dummy crashes in ``MergeOptimizer.apply`` and ``local_lift_transpose_through_dot``, and both broke into pdb in the correct place.