common: trace: remove remaining traces of Unknown type
builder: pass const TraceSet* instead of shared_ptr