Support trailing commas in lists