fixed nmatrix out typemap