caos.backends.pgsql: Fix Caos tree transformer context
caos.backends.pgsql: Fix Caos tree transformer context

Fix Caos tree transformer context to retain previous context information
when switching.  Also, use native shallow copy of dicts instead of
deepcopy.

edgedb/edgedb,edgedb/edgedb,edgedb/edgedb