Improve `.applySourceMap()` name handling