Added support for reading polymorphic fragments.