Switched evaluation of objects in finalarray to simplify cascading template sippets