Improved getFTLTypeDescription
Code celanup in the error handling code. Some random smaller fixes (-exp NPE). Changed TemplateException format. Improvements in error message quality.