Make ContainmentTree fully generic (#4620)
### Description
This turns the ContainmentTree struct into a fully generic data
structure. The previous PR in this stack already made the chunks values
generic, but this goes one step further by making the key type generic
as well.
### Testing Instructions
Unit test