Implement link matrix inversion for U(3) and U(4), clean up and generalize R symmetry transformation.