Stringify source-map object before writing

Fixes `--source-map` outputting `[object Object]`.