util: add scope tracer utility (hack, but more or less useful)