Ensure that array properties are arrays
Extract the variables into the template wrappers