Fix gen_update_from_array to work correctly with multiple key fields.
BUGZID: