Make IrDsymbol to be a typesafe union to reduce memory usage
Reduce size of IrDsymbol even more

resolved/defined/declared/initialized are turned into flags.
[Refactoring] Turn IrDsymbol flags into an enum value