Fix a bug in BTree::equal_range(const RangeKey&) and add tests - a similar bug may need fixing in InMemorySortedPage::equal_range(const RangeKey&).