Print stack value refcounts when tracing (#636)