Add Tag type and NewTag and NewTagWriter.