Add a bunch of type-hints to avoid reflection warnings.

Type Hints for great good.