codegen: fix emitted code for function declaration parameters.