Return 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report...