fixes factor(), separatevars(), combsimp() from Issue #6280

This fixes 3 of 5 wrong results in Issue #6280.