ENH: Add categorical support for Stata export

Add support for exporting DataFrames containing categorical data.

closes #8633
xref #7621 
can you put a blank line before each 'block' (e.g. have a blank line, comment line, then code)