destructors now also reset the pointer of contained ilwis-objects. solves part of the leak in the mastercatalog