Critical CategoryType fix!

Fixed CategoryType so that certain otherwise unavoidable errors do not
occur.
The issue had to do with the the class beginning with enum CategoryType
instead of public enum CategoryType.