Neither of those are bugs. The treebar isn't designed to mimick every aspect of the switchbar's behaviour. The current policy is that you can expand/collapse branches as you wish but as soon as you move to a window, the respective item in the treebar is selected and made visible (meaning the branch is expanded if necessary).