Pattern generator fixes

Pattern generator is not interpreting some patterns correctly; lower
case character patterns in particular.
Made SetupManager non-static. This has the obvious disadvantage that we need to pass it down to all the classes that need it, but has the huge advantage of all fillers being isolated and free of side effects.
Merge branch 'BUGFIX_PatternGeneratorFixes'