Add a TrailingObjects template class.