gdiplus: GdipInvertMatrix implementation with tests.