Assert correct left key in `mergeLeaves`.

Closes #170.