Fixed enums becoming something other than a enum.

Now using clang::QualType::getCanonicalType. This seems to fix all
problems with enums Tria had before.