Fixed several bugs for predictions with Mixed type covariates.