Refactor the part of SymbolFlags
Add an error check to Primitive#constructor
Print diagnostic warning messages