Fix scoping of name in inline_template.