Modified set_template_vars() for fields/objects to provide sensible defaults