Remove trailing comma in array and object literals.