Unfortunately using boost::serialization will not solve the problem of the two disconnected clipboards for table/nontable stuff. You would still need to keep track of what was the latest copy operation and whether it is multicell stuff or single cell stuff. I don't think that boost::serialization can automagically transform a LyXtabular into a ParagraphList or vice versa :-)
From data structure point of view, clipboard would become typed
stream. I.e. LyX_Table, LyX_Text, LyX_Math etc. Then, depending on where the clipboard is pasted, we should have converters like LyX_Table->LyXText. LyXText->plain text so that table stuff can be pasted into a text paragraph. Of course, this can be done between two lyx sessions. Bo