Making visitor function configurable, and adding utility script for list all perms(n).
Fixing bug where too many blocks were being skipped in response to bad suffixes.