[Git][ghc/ghc][wip/mp/iface-patches-9.10] Refactor the Binary serialisation interface