Fix typo in debug set text.
Rewrite split() function.  Previous version occasionally lost data.  New version
is simpler.
Fix: Calling print_set with a null set parameter generated a runtime error.