many fixes to Learner and GLM