Make either::{partition, flip, to_result} take their arguments by-value

r? @pcwalton - Addresses an XXX