Add - as a valid charater in identifiers
Ensure that the error strings are flat lists
Improve the error handling in trails_templates