Handle 0d categorical data similarly to 0d numerical data (see statsmodels/statsmodels#1881)