re-introduced support for per-output-type exception templates (lost in 35b5a47b53b88215c8f0c94a01944ce6dd5f520a), attribute for 'output_type' tag is now 'exception_template' (was 'exception'), closes #357