fixed filesystem loader when the name needs to be normalized
reverted optimizations done in the filesystem loader as it beaks BC
fixed two edge case bug in the filesystem loader

* fixed caching when two templates have the same template name but a different namespace
* fixed the error message when a template has a namespace
removed usage of deprecated classes in unit tests
removed usage of deprecated constants
updated CHANGELOG