Add memory tracker to multimap index, including unit test for it.