fix issue with rendering arrays in config for templates.