feat(util/object_serializer): protect against corrupted files

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
feat(deserializer): protect against corrupted binary files

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>