Fix copy par_loop and add copy constructor for MixedDat

Also add tests for both.