add missing type() function to TagList