New test: bin/levenshtein_distance.sf
Various bug-fixes.