Fix container loop detection: Only call doLoopDetection when entering a new archive, not when copying it etc.