Fix Memory.Transform.Flip and add test.