fixDataForLearner: a fast model.matrix replacement
+ some fixes for glmnet and survival models