MAINT: optimize: remove dead code

ndim of arrays that were previously flattened were being checked.
(The check and flatten could be swapped, but that would change current
behavior.)
ENH: integrate: odeint: Handle exceptions in the callback functions.

Basic idea:  There are C functions that are called by the Fortran solver
LSODA.  These C functions call the user's Python callback function (i.e. the
definitions of the differential equations and Jacobian).  If an error occurs
in the Python code, the C functions set the "number of equations" parameter
to -1 to indicate that an error has occurred.  The Fortran code will now
check for this value, and simply return if it is detected.  The error set
in the user's python code will propagate up to the Python code that called
LSODA, so the user gets the exception.

Change summary:
__odepack.h:
    In the callback functions, instead of calling PyErr_Print() when an
    error occurs, set *n = -1.
multipack.h:
    Don't use PYERR2 (which does PyErr_Print and then sets a new exception).
    Instead, just let the error propagate.
Fortran code:
    Check for neq(1) being -1 on return from calls to user's code.
BLD: update Bento build for special.ellip_harm changes.
Merge pull request #4052 from WarrenWeckesser/odeint-exceptions

ENH: integrate: odeint: Handle exceptions in the callback functions.
Merge pull request #4156 from larsmans/optimize-dead-code

MAINT: optimize: remove dead code
BUG: Workaround for SGEMV segfault in Accelerate (OSX version 10.9)

Corrects scipy.linalg.blas.sgemv, ARPACK, SuperLU
similar to: numpy/numpy#5223
Merge pull request #4186 from pv/pr-4105

BUG: Workaround for SGEMV segfault in Accelerate
BUG: Fixed declarations involving f2py fortranname keyword for
combatibility of Cython BLAS and LAPACK wrappers with OSX.
ENH: Added Cython API for all currently wrapped BLAS routines.
ENH: Added Cython API for all currently wrapped LAPACK routines.
TST: Test to make sure that the Cython BLAS wrappers work.
In particular, test that the functions that use the fortranname keyword in
fblas_l1.pyf.src work properly.
TST: Added a test for one of the Cython LAPACK wrappers.
ENH: Added the function get_linalg_dir to get the directory containing scipy.linalg.
DOC: Document Cython API for BLAS and LAPACK.
MAINT: Ignore C files generated for the Cython BLAS and LAPACK wrappers
and their corresponding tests.