Fixes 13793. Correct source map generation bugs.