[dev] Converting tensor_grid to template with std::vector as default.