Port back more efficient packing of string data from GHCJS to GHC javascript-backend
## Summary
Javascript backend produces bundles with string data packed in [inefficient](https://gitlab.haskell.org/ghc/ghc/-/blob/e1cf8dc2c941d36dc92139faa07ee6baf2599e38/compiler/GHC/StgToJS/Linker/Linker.hs#L1290) form. Inefficient here means that actual bundle size becomes notably bigger than it could be.
For example, string data is encoded in a form where every symbol is coded as a char code in a list:
```javascript
[72, 101, 108, 108, 111] // "Hello" w/o quotes.
```
"Hello" itself 5 symbols takes 24 symbols with spaces, commas and brackets.
There is an [implementation](https://github.com/ghcjs/ghcjs/blob/b7711fbca7c3f43a61f1dba526e6f2a2656ef44c/src/Gen2/ClosureInfo.hs#L545C64-L546C1) of more efficient strings packing at [GHCJS source code](https://github.com/ghcjs/ghcjs/blob/b7711fbca7c3f43a61f1dba526e6f2a2656ef44c/src/Gen2/Compactor.hs#L212).
At first glance (very bird-eye-level analysis, any comments are highly welcome) it should pack "Hello" into something which is near the origin `"Hello"`. So, 5 symbols should be packed into something near 7 symbols (quotes included).
References:
1. [RTS js strings](https://gitlab.haskell.org/ghc/ghc/-/blob/e1cf8dc2c941d36dc92139faa07ee6baf2599e38/rts/js/string.js)
## Expected behavior
By the end of this issue we expect to see better bundle size reduction after applying more efficient (in terms of bundle size) string packing and all tests are passed.
## Environment
* GHC version used: commit `e1cf8dc2c941d36dc92139faa07ee6baf2599e38`
issue