Validate header and footer checksums on unmarshal

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