this excludes iterator class things. if you want that, i would typehint `array` on setTags