BUG: sparse: fix bugs in dia_matrix.setdiag

- hide details of the internal dia_matrix data representation in
  setdiag(), so that behavior matches the other spmatrix types

- fix bugs in resizing self.data, which doesn't always have
  self.shape[1]==N

- add scalar broadcasting behavior to setdiag() for all matrix types
BUG: sparse/dsolve: detect invalid LAPACK parameters in superlu and bail out gracefully
BUG: nonlinear solvers are not confused by lucky guess
TST: fix sparse test errors due to axis=-1,-2 usage in np.matrix.sum().

Negative axis arguments are not supported by numpy < 1.7.0.
Fixes part of gh-3330.
Merge pull request #3272 from pv/fix-setdiag

BUG: sparse: fix bugs in dia_matrix.setdiag
Merge pull request #3390 from argriffing/broyden-lucky-guess

BUG: nonlinear solvers are not confused by lucky guess
Merge pull request #3373 from pv/superlu-fix-lapack

BUG: sparse/dsolve: detect invalid LAPACK parameters in superlu and bail out gracefully
Merge pull request #3391 from rgommers/sparse-errors

TST: sparse: fix sparse test errors due to axis=-1,-2 usage in np.matrix.sum().
BUG: sparse/compressed: work around bug in np.unique in earlier numpy versions
Merge pull request #3393 from pv/fix-sparse-unique

BUG: sparse/compressed: work around bug in np.unique in earlier numpy versions
ENH minimize, minimize_scalar: Add support for user-provided methods
BUG: sparse/lil: fix up Cython bugs in fused type lookup

Cython (up to 0.20) fail to look up function signature for lil_insert
and lil_fancy_set.  Look it up based on dtype manually instead.
BUG: sparse/_csparsetools: work around dtype equality bugs in earlier numpy versions
BUG: sparse/lil: fix object array assignment issue in Numpy 1.6
BUG: fix missing np.intp entry in type dict in sparse._csparsetools
Merge branch 'fix-lil-assign' into master.

Review at https://github.com/scipy/scipy/pull/3392
BUG: cluster.linkage ValueError typo bug
BUG: special: In specfun.f, replace the use of CMPLX with DCMPLX, which returns the correct data type.
Merge pull request #3369 from pasky/minimize-custom

ENH minimize, minimize_scalar: Add support for user-provided methods
Merge pull request #3400 from argriffing/linkage-errmsg

BUG: cluster.linkage ValueError typo bug