Allow custom to_csv

Call object's own `to_csv` when available.

Closes #10