Fix backtrace construction with debug info

* The condition is e.debug == unit OR e.debug.stack == unit.
* Use some space for clarity instead of an extra long conditional.

@sjrd Dealing with records in C++ feels hard. Maybe we should have some `matchRecord()`.