reference counting for tensors (only needed for communicator handle that must be freed when no longer needed)