Fixes #1452: Added `Module::getInstance()` to allow accessing the module instance from anywhere within the module