Copy operation in function calls.

Since VRIR is by default call by reference additional copy statements need to be added in the front end.