Fixed a bug in SdA where the params list was not re-declared in __setstate__.