treeview performance fixes

- make sel item visible
- prevent treeview lockup and memory huge
- fix Forms build