support arrays in combineTemplate