Only string and integer types can have tags.

This should fix the issue with Coverity