[Typer] [Git][monnier/typer][master] Various fixes to type inference and checking