Reduce unnecessary container operations for phi lowering.

In the style of 94b98a9f6dc71eeee120f676adab75ae1668952b.