Set identified flag on objects in object_debugger().
Fix memory leak when generating shop items.