TypeMap had a destructor that destroyed the types it held. DenseMap did not, so