changing a generated ref to copy

avoids unexpectedly changing things
add factorial.jaz test program

doesn't quite work anymore, because the parameter isn't declared