fixing leaks and bugs in dumping obj1 runtime