7594

fixes #7594: factor(sqrt(x)) no longer gives x