Implement Index for RingBuf

This also deprecates RingBuf::get. Use indexing instead.
Implement Index for HashMap

This also deprecates HashMap::get. Use indexing instead.
Implement Index for TreeMap
Implement Index for SmallIntMap

This also deprecates SmallIntMap::get. Use indexing instead.
Implement Index for TrieMap