pub fn struct_fields_to_map( layout: &StructLayout, fields: &[Option<VmValue>], ) -> BTreeMap<String, VmValue>