Fix a serious bug in the FromTF frequency analyzer.

Came from increasing the test coverage statistics, which this
commit also does lots of.