Typecast Poly to PurePoly in RoofOf._new, fixes #7876
Merge pull request #7879 from skirpichev/7876-fix

Typecast Poly to PurePoly in RoofOf._new