yesod::iterator: fixes to range handling

Signed-off-by: Alex Dubov <oakad@yahoo.com>