The implementation of structs is a Map and we used to reserve a key with the name "$type" for the TypeRef. This is no longer needed since the TypeRef is a constant per struct and needs no storage. Fixes #450