TemplateReference no longer needed
fix bad indentation error line
make emitter work with security schemes