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