Make 'template_ext' config parameter work with render_opt(), too.