various project tree cleanups
improvements found while trying to track down project-tree crashes.
needs gtk!5875 (merged) for actual crash fixes.
improvements found while trying to track down project-tree crashes.
needs gtk!5875 (merged) for actual crash fixes.