Clone test arguments

If a test uses `@depenends`, clone the arguments that are objects to prevent unintended modification of the objects  by other functions.

My biggest fear here is an bump in memory usage by phpunit, as we now duplicate multiple objects.

Fixes #1057