Add (failing) test for #234
Don't require source in __setstate__; fixes #234
Don't mutate __dict__
Merge branch 'fix-234' into develop
Use == for comparison