Fixes #2: Allow downstream modules to modify mod dependencies

Deeply clone the module before we emit it in case a downstream function
modifies the dependency list we'll later navigate.

If using dgraph in a browserify-like method, we'll encounter this issue
with insert-module-globals.
Merge pull request #3 from terinjokes/modify-deps

Fixes #2: Allow downstream modules to modify mod dependencies