Fixed bug in bearing_index::get_bounds() and beefed up unit test for same.