Call setup_template_variables() in new_metadata()

Fixes #297