[CSharpBinding] Fixed some issues in the automatic bracket insertion.