Handle splats correctly in case statements for the to_sexp representation. Fixes #2076