cleanings

and some tweaks to silence the static analyzer which was detecting a false positive potential leak
on new created items because of how items are structured (cirucal references with the list wrappers)