apigen: handle unsigned return types