Add a tag property to all objects, data type "object".
This would give us the ability to assign and track metadata with anything. For example, we may have multiple graphicoverlay layers, each with a specific purpose. The tag property would allow us to loop through the layers and depending on the tag assigned to it we could perform different functions.
Same goes for features, graphics, etc.