title: empty arrays in cython: segfault when calling PyArray_EMPTY
body: <p>When I try to run the cython code below to generate an empty array, it segfaults. </p>
  
  <p><strong>Is there any way of generating empty numpy arrays in python without calling <code>np.empty()</code>?</strong></p>
  
  <pre><code>cdef np.npy_intp *dims = [3]
  cdef np.ndarray[np.int_t, ndim=1] result = np.PyArray_EMPTY(1, dims, 
                                                              np.NPY_INTP, 0)
  </code></pre>