ensure we preserve nil slices on serialization and deserialization

[#79618158]

Signed-off-by: Eric Malm <emalm@pivotal.io>