export_as_csv: add dialect. add alternative header. fix filename kwarg

filename kwarg was required even when using out kwarg