Added Template::getParameters() to get a list of parameters used in a template
Automatically define parameters that are used in templates