Remove trailing commas on array definitions