[#7021] ticket:533 fixed error with pgp signed commits
[#7021] Added serialization and test from upstream and fixed test issues