Bug 852140: IonMonkey: Backout bug 844452 and add testcase, r=nbp