Use types already in AST when making .hie file