Improvement CodeRefactor

- Truncate Imports for haxe
- fixed behavior for one unused import.

If we have exception between BeginUndoAction and EndUndoAction in which state sci will be? Should it be reverted? Or ended explicitly?