Remove trailing commas of arrays

One of the obstacles to allow thrift to be able to run in IE8