Fix bug in CSV.toArray and CSV.toJSON