Support stringsAsFactors in all dataframe conversions