editor: wire enable-word-completion to editor setting.

This allows to enable/disable the word completion provider in the
editor settings.
action: fix reference counts on variant objects.