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 #4625 from Dr15Jones/fixReplaceModuleAndGetByToken

Bug fix: changing a module did not set getByToken code