Make more use of DefineConsoleMethod

Resubmission of #887 with some fixes.
`StringTable->insert` returns a `StringTableEntry`. However, `setValue` accepts a `const UTF8*`. :frowning: