[sdb] Fix handling of out ref parameters.