Fixed a bug in Serializers:SerializeBlock().
Implemented a test for SerializeBlock.