Custom CSV headings for to_csv

For multi-dimensional arrays I found it slightly cumbersome to replace array keys to get custom headings. Passing an array with new headings to_csv appears to be an elegant solution.