Adapt elemToSFItem and elemToSF to new types
Adapt 'elemToMSG' to new types and add tests