Fix some memory leaks, add support for dumping offsets in objects.