fix the is-leaf
should use partition-all, not partition, otherwise some last items are lost
Merge pull request #1 from radaczynski/fixes

Some small fixes