Added basic implementation of Phi nodes (refs #198).