Platform_code.unmarshal uses a Result.t

Signed-off-by: David Scott <dave.scott@eu.citrix.com>