Fix tracing
Avoid NPE
Issue 7351: 	DOM panel collapse remembering logic is broken
Expand also long string when restore a tree state
Avoid content objects when providing value and label