Intelligently add commas to separate elements.