Clean up idSeekLeafPlanner
Merge pull request #2227 from jakub-/var-length

Clean up idSeekLeafPlanner