compiler: resolve types when doing new NativeArray