completion: improve handling of --track in switch/checkout