Small improvement for get_template_vars tag