Remove weird tag flags.

In random cases the compiler adds a flag called "PUBLICTAG" to tag ids, and takes great pains to strip it out under mysterious circumstances. It seems to be pointless and we publicly export all tags anyway.

This patch just removes the entire concept, and that simplifies how tags are masked as a bonus.