Fixes 13793. Corrects source map generation bugs.