Making sure that values passed, not just maps, also convert objects to arrays in the Template class.