Added support for as.factor in predict