Improved debugging of reverse AD: automatic dump of debug code with
reference solution and trace point; showing the offending source code
when the import fails