tracing/events: record the size of dynamic arrays