Integrated factor/categorical data class support