Fix OneDGrid constructors and destructors with template parameters
Summary
Constructors and Destructors in class templates should not contain the template parameter list explicitly in their function name. This was supported in older compilers but is dropped in c++20.