Changed how Tags and Attribues cache and track which objects they use, as suggested in #529.
Changed how lazy-loading of handlers work, using a werkzeug recipe. Much more efficient now.
Started moving tag/attribute handlers to TypeObjectManager as per #529
Fixed outbut listing bug in @set.