charmxi: generate by reference call properly in other case