Fix Sequence Record serialization issue

It originally did not serialize schema id and version.
This fix takes care of it