ENH: Add categorical support for Stata export

Add support for exporting DataFrames containing categorical data.

closes #8633
xref #7621 
What is the connection between the need for checking for duplicate data and the fact that the labels are stringified?