include: avoid using C++ 'template' reserved word

Closes #1394