This function parses and validates the arguments that are passed on to the
functions one2one, one2many, and many2one. In particular, it checks if
user-defined preference orders are complete. If user-defined orderings are
given in terms of R indices (starting at 1), then these are transformed into
C++ indices (starting at zero).