Register for gob encoding all structs that fulfill interfaces