remove recently added IsRootComponent method, as it is not really needed
fix bug in EditorScript.InsertWithCursor when executing a nested script in a different file, the "root" script was not properly disposed after the nested script finished.