fix predict() warning on factor response

fixes #205