Test to ensure type(input) == type(output).
Better errors on incorrect input length for Hill.
Polygraphic IC.

str.count only counts non-overlapping occurrences, which is wrong but not a
huge deal. I'll fix it later.