[Templating] Allows "template" as parameter name

And add a test for "__template__" and "parameters" which are forbidden
to avoid any conflict.