Implemented the complete list of type identifiers and flags.

Don't panic, it's nothing like the existing deprecated hard coded stats. These serve a different purpose.

These come in the form of enumeration and sets of binary flags.