Add a small debug template class to help tracing constructors/destructors