adding fix and testcase for a sort of pointless but valid package where a familiy name in the requires is also in a variant