Fixed two bugs around templating:
 * Error checker for named arguments was being used for numbered and
rest arguments, and so causing validation errors for correct usage.
 * Off-by-1 error with numbered arguments.