All Rust commits from Facepunch
Fix some more serialisation issues that came up when switching to CoreCLR