autogencode: ref argument -> const ref argument