Don't output trailing comma after final list item.
End list should only occur in list context.