fix to_sxp for lists