Wrong full serialization :(
Worked serialization
Add some tests
Test for correct and incorrect DSA
Guess it is bug
All tests pass
Strange agruments postitons in DSA constructor