Add basic release time tracking

Currently incurs performance penalty.
Need to try and do something about that
Track and print a table of allocations vs deallocations

Requires TRACE=tmp1:2
There's currently a discrepancy between allocation (which tracks
everything) and deallocation (which only tracks refcounted objects)

Not sure whether this can be fixed by carefully instrumenting memory
manager methods