Some fixed for the grid_search() method.
Authored by: bugman 2009-06-19
Parent: [r9091]
Child: [r9093]