Add interned, static, reference counted strings

All thanks to the refptr API. When the last reference goes, we also
remove them from the cache.

Future expansion: release the interned cache using a destructor.