Improve move to final state under packet reordering.
Fixed invalid type.
Merge https://github.com/impl/libcurvecpr
Merge pull request #1 from kostko/master

Merge in final state fix from kostko