Fix memleak caused by usage of one-time-use class types.

Turns out they were leaking, because zope holds the reference.