SI-8023 Fix symbol-completion-order bug of type var patterns