Updated grid objective function validity test
Updated grid objective function validity test

Now allows function types 2,3 and 4 for regression models
And checks for class types in classification models
Adds a simple backoff in case the classes are of mixed type

ernfrid/skll,ernfrid/skll