Support terminating commas before the closing bracket in arrays