Added eliminiation of trivial phis (refs #167).