Basic support for TraceError (wip, related to issue #1)