Dear Yves,
I got this puzzling Issue on tidySEM: cjvanlissa/tidySEM#109
Apparently, lavaan accepts numeric grouping variables, which strikes me as a mistake because numeric can have infinite and fractional values. I guess you internally convert to factor? Do you think a message or warning might be in order?
Best,
Caspar