When array items have a delete button associated with each item we no longer show the button to delete the last element in the array. Also extended template rendering to support functions that return a string.