when free_gamedata, also unhash all factions. speed up is_monsters().