Fixes in operations to adapt to shallow cloning

Just some minor fixes and tests for some particular situations derived from shallow cloning