Initial implementating of RETURNING list remapping

Doesn't handle whole-row vars. May need to be done using replace_rte_variables instead.