introduced TypeInfoRepository class with ability to register type (to decrease size of serialized data)