Improve source-maps=memory.

Correct the key for sourcemaps in mode 'memory'
Add unit test for sourceMaps:memory from interpreter.
Add sourceURL when the input name differs from output name.
typo: im -> in