Given a reference to the deck, you can manually obtain the closure for a module like so:
deck.modules.dd.value
See the reference documentation for the Module Interface.
In most cases, though, I'd recommend breaking down the responsibilities of a contraption such that it doesn't internally access or depend upon modules or other contraptions. You might consider a contraption which dispatches events to external scripts, and have those external "widget-level" scripts interact with modules or other deck-level resources, for example. Ideally, modules and prototypes are freestanding, reusable parts.































