Ensure we clear the item id->name map when resetting base id.
Ensure we clear the item id->name map when resetting base id.

This will save memory in tests which use multiple indexes.

cpearce/HARM,cpearce/HARM,cpearce/HARM,cpearce/HARM