Improves defined_names worker and DocumentAnalyserMode

Update defined names if text changed and do not compare results, refresh always occurs (this fix small bugs where a node in the class browser was not updated)