Support trace_chains with CauseStacker interface
Add error to CauseStacker
Add tests for CauseStacker