Typecast Poly to PurePoly in RoofOf._new, fixes #7876