FIX: bug in gridSearch when params=array([None])+ refactoring