Replace silly nsubst version of subst-json-sugar

With a basic copy tree version.
Export jdoc and clean up user-query to match
The JSON sugar S-SQL form is to-jsonb, not to-json

And so we avoid double duty for to-json which we may end up exporting
from postgres-json for use as a function.