Tracing topups

Polish cstruct repr, tweak tracing functions and clean traces a little.