Handle NIL and VALUE in dump_sxp correctly

Signed-off-by: Olaf Hering <olaf@aepfle.de>