Fix wrong assertion when linear lists where used.
Merge branch 'master' into interval-tree