Add code_version (previously called repository_ref) as param on instance creation

Signed-off-by: Eduardo L. Buratti <elb09@c3sl.ufpr.br>