[Typer] [Git][monnier/typer][master] Add various primitives; fix various monad bugs