Bug fix: changing a module did not set getByToken code

When an EDLooper changed a module, the infrastructure used to properly setup getByToken was not called.
Merge pull request #4626 from Dr15Jones/fixReplaceModuleAndGetByToken_7_1

Bug fix: changing a module did not set getByToken code