tracing: Add ref_data to function and fgraph tracer structs