fix default_delete for template class impl