Changed a local declaration to use a pattern instead of a string name. In relation to that a pattern visitor to handle the IR construction of patterns has been introduced.
Removal of code that is not called
Changed the sequence comprehension in the IR to use a set bind
Changed bind related visitors to correctly used the pattern visitor for constructing patterns