[Typer] [Git][monnier/typer][main] 2 commits: Miscellanious bug fixes and code cleanups.