attributes and two small bug fixes for csv

some more

some reverts

nitpick

csv love update

forgot some

added one nogc

some more
Merge pull request #2349 from burner/some_love_for_csv

attributes and two small bug fixes for csv