Fix problems in Symbol Literal static caching

Details in the commit messages.

Review by @soc / @lrytz