Catching this error at runtime would be extremely trivial. Just add a magic number on top of the GSList and GList structs.