Use annotations in typechecking, with basic unification.