Fix for "SGDClassifier(warm_start=True) crashes on second call to fit() on multiclass problems"

As described in #1797.
Adding minimal test case that fails without my change.