Add support for render_with_type on ClassRelationshipSpecs.