TreeWidget: expand connections by default
Revise TextDocument ref counting