replace hashmap with a dummy vector based implementation as the number of tags per object is tiny
replace hashmap with a dummy vector based implementation as the number of tags per object is tiny
use an explicit downcast to initialize variable