Bug 889543 - Use AutoCycleDetector instead of CloneMemory; r=till

--HG--
extra : rebase_source : 394255ac2da12eaea09c8be95847a5d19f6b3b21