SERVER-10026 SERVER-12026 index bounds test additions + a bug fix

The first commit consists only of additions to the index_bounds_builder_test.cpp unit test. The second commit is a bug fix related to taking the union of index bounds. I have batched these two commits into a single pull request because the test cases paired with the latter commit depend on test additions from the former.