More mempool statistics.
Fix memory leak when generating books describing artifacts.
Fix memory leak in generate_treasure().