Add support for reading polymorphic fragments