Introduced an assert in `PackageScope.enter`, which prevents entering the same symbol twice, since what we ultimately want to achieve here is to avoid duplicates.