Correctly interpret logical matlab arrays as booleans when mat_dtype is set
TST: stats: add another test for find_repeats()
MAINT: stats: simplify (and speed up a bit) some code in wilcoxon()
TST: special/test_mpmath: fix elliptic function tests
BUG: memory leak fix in convolve2d.
Merge pull request #508 from gustavla/master

BUG: signal: memory leak in convolve2d
MAINT: cluster: Remove unused imports, unused variables and commented-out code from hierarchy.py
Merge pull request #510 from WarrenWeckesser/cluster-cleanup

MAINT: cluster: Remove unused imports, unused variables and commented-out code from hierarchy.py
DOC: io: update code comment and whosmat docstring
Merge pull request #504 from batterseapower/master

ENH: io: Present loaded logical Matlab arrays with a boolean dtype

There was already some code which attempted to do this in the Matlab
file reader, but it was broken. To be specific, the old code assigned to
a dtype to a local variable bool_dtype rather than self.bool_dtype, and
so later attempted uses of that dtype would be null/None and so would
not have an effect.

This change makes also the writer set the logical flag if you write out
an array of bools.
BUG: special: add a missing term in the asymptotic expansion of Fresnel C/S
Merge pull request #501 from pv/special-fresnel

BUG: special: add a missing term in the asymptotic expansion of Fresnel C/S
BUG: special: switch to AMOS implementation of Airy functions at large arguments

The Cephes implementation gives wrong results (relative tolerance >
1e-12) after |x| > 10.
GEN: special: regenerate files
Merge pull request #502 from pv/special-airy

BUG: special: switch to AMOS implementation of Airy functions at large arguments
BUG: linalg/flapack: fix invalid lwork checks in gerqf, orgrq and ungrq

This causes segfaults in test_lapack.py:test_ticket_1645
BUG: sparse: The dtype argument to the dok_matrix constructor was not handled correctly when the input data was a list of lists.
Changed base.__pow__() to use O(lg N) binary power algorithm.
Fixed bug in new spmatrix.__pow__
Added a test for __iter__(). Need to decorate for types that don't support that method.