Refactor leaf planners not to use folding of the leaf plan table

Instead, each leaf planner will produce a candidate list. Afterwards
all candidate lists will be merged into a single one, sorted and pruned.