Add trailing commas to the last elements of arrays