lua: add reference counting for strings - this will need A LOT of testing, but it...