[BUGFIX] Correct inline foreign_unique with target type="group" handling