Working again, fixed issues with type refcounting
various memory leak fixes (especially in blob and world)