Implement {add,clear}TagId

Closes #81