unify_rpd function

Unify lists of dimension names if there are any in common