Rheological Transitions During Partial Melting and Crystallization with Application to Felsic Magma Segregation and Transfer