Fix various leaks in 7z archive parsing code and isolate leaks in rar handling code to rar archives only