implemented MpsTerm::ExtractDefinitions, and other details