Fix bug in buildPatterns related to case sensitiveness

Fixes a bug in the implementation of `buildPatterns`. In particular,
when we are building a `Pattern`, we need to do so in a case insenstive
fashion, otherwise later in the call to `replaceTerms` we would be
calling this from `extractTermsWithList` that cast everything into
lowercase due to the use of `monoTextsBySentence`.

This means that before this commit if we tried to search "Map" into
the text "Map is what I use when I'm lost" we wouldn't get a match,
because the latter would be converted into lowercase first
(i.e. "map is what i use when i'm lost") and we were trying to look
for the string "Map" (i.e. the former) into the transformer, yielding
no matches.
4 jobs for adinapoli/issue-395 in 44 minutes and 53 seconds (queued for 58 minutes and 20 seconds)
latest
Status Job ID Name Coverage
  Cabal
passed #18219
cabal

00:18:39

 
  Stack
passed #18220
stack

00:02:42

 
  Bench
manual #18221
allowed to fail manual
bench
 
  Test
passed #18222
test

00:23:31