Add "old_row" parameter to accumulator, for update triggers.
Add support for update trigger.

Rewrite the whole trigger generation machinery, so that update trigger can be
executed too.