Resolve expressions before building pipes.
Merge pull request #3195 from pontusmelke/resolve-expressions-early

[2.2] Resolve expressions before building pipes.