reltoolbox (dist): Preferentially use the source relation dataset If the source relation does not have a dataset, use the current edit dataset instead.
This also adds some basic tests.