Bug 1041673 - IonMonkey: Implement opcode testing and casts with member function templates. r=nbp