Convert JSON arrays or Meteor collections to csv