Fix iterators using non-existent start/stop keys

Fixes issue #4.