Tuple compiler: Make "empty" the inverse of "exists".  Blank fields should not be added to the tuple in the first place.
Tuple compiler: Clean up sanity checks.
Tuple compiler: Rewrite using C++ objects.
Tuple compiler: Error handling cleanup.
Tuple compiler: Fix potential for infinite loop and reading past end of string with malformed input.