Optimized output of comma-separated lists.