#1784: merged everything from trunk revision 7770 to branch ProblemInstancesRegressionAndClassification