Swaps reference and response DOF in an imat_fn.
G = REF_SWAP(F)
REF_SWAP returns an imat_fn, G, which is identical to input imat_fn F with the exception that reference and response coordinates are switched.