Exporting sourcemaps

Fixes #30
Unless I am missing something. This is assigning a model reference a source map of the original model definition. Is this intended?