An ugly workaround for virtual template functions at PortableWriter, DefaultPortableWriter, ClassDefinitionWriter, PortableReader and  MorphingPortableReader