title: JNA direct call not working with argument Structure[]
body: <p>I have a C++ function:</p>
  
  <pre><code>struct Result {
      //...
  };
  bool doSomething(Result[]);
  </code></pre>
  
  <p>If I use the following JNA binding, the function call works fine:</p>
  
  <pre><code>public class Result extends Structure {
      //...
  }
  
  public interface CPPLibrary extends Library {
      public static final CPPLibrary INSTANCE = (CPPLibrary)Native.loadLibrary("dllname");
      boolean doSomething(Result[]);
  }
  </code></pre>
  
  <p>But with <strong>direct call</strong>, I hit an <em>IllegalArgumentException</em> saying <strong>class [Lcom.usta.Result; is not a supported argument type (in method calcPV01 in class com.usta.CPPLibrary)</strong>. My JNA code for the direct call-mapping:</p>
  
  <pre><code>public class CPPLibrary implements Library {
      Native.register("dllname");
      public static native boolean doSomething(Result[]);
  }
  </code></pre>
  
  <p>I can see in <strong>com.sun.jna.Function#convertArgument()</strong> explicitly handles <em>Structure[]</em> but <strong>com.sun.jna.Native#getConversion()</strong>, which is used by direct call-mapping, does not handle <em>Structure[]</em>.</p>