csv export fixes

turns out auto-defaulting custom form and case exports to csv was actually a bad idea, since they already specify a default type in the UI.

this restores that functionality (and fixes a couple small things that appear to be unrelated bugs introduced).

thanks @amsagoff for the feedback