Fix IR type of parameters in JavaScript functions.
Fix IR type of () -> undefined conversion.
Fix the IR type of matches in statement position.
wip