added option to disable namespace wrapping of the templates in an array