make sure free_symbols uses PurePoly in RootOf