Use foldt in literal search

Prevents exploration running too deeply
Rename ExtractPatterns to literalReplacement

And update tests
Merge pull request #2 from cleishm/auto-params

Use foldt in literal search