Distinguish between major and small erase_range operations. Implemented rdb_erase_small_range().
This should fix #1885.