[Ide] Fixed some bugs in automatic bracket insertion.
[CSharpBinding] Fixed wrong caret offset bug after import symbol
completion.