lavTables(): better handling of multiple groups