Refactor uses of "partitionEithers . map" to "partitionWith"
There are several places in the compiler where we use the idiom partitionEithers $ map f ... when we could use partitionWith f. This ticket simply keeps track of this simple refactoring task.