Similarity: upgraded copy of levenshtein.js

Ensures non-string input doesn't crash.