Refactor ID seek plans and pipes to carry over a sequence of expressions

This vastly simplifies the leaf planner and the pipes to some extent
Merge pull request #2186 from jakub-/id-seek-cleanup

Refactor ID seek plans and pipes to carry over a sequence of expressions