Added support for one dimensional arrays in templates