Tag handling: operator ==, remove_tag_item

This is basically my previous (closed) pull request; this time, from the correct branch :)

This mechanism is necessary to prune tags manually from the input stream, e.g. if you have TPP_ALL but don't want a specific tag to propagate.