Incremental: main module typechecks

Note we can't call OS.Sched functions from here.

Signed-off-by: David Scott <dave.scott@citrix.com>