Class for merging arrays of fields into template strings