AOT compile nses with types