Added tests for copying and transformations, added code for copying of scalar refs