FIX for iid weighting in grid-search

This is a fix for the iid weighting in GridSearchCV. It could be that I screwed this up before, but didn't notice as there was no test.