Better error message.
Merge the 2 __setstate__ function in the same class!

At worst, it would cause crash.
Merge pull request #1273 from nouiz/mixed

fix reload and better error message