ENH: Add categorical support for Stata export

Add support for exporting DataFrames containing categorical data.

closes #8633
xref #7621 
I didn't look in detail, but shouldn't we also test that the file is written correctly? (by reading it in again and checking to original?)