Implement support for CLASS as well as TYPE

As far as the tag manager should be concerned, CLASS and TYPE are identical, so handling CLASS should just be as simple as introducing an extra case alongside handling of the TYPE keyword.