BUG: Compare struct arrays with different endian.

Fixes two places where dtypes with fields are compared for *exact*
equality where they should be compared for *equivalency*.
Merge pull request #3664 from mdboom/structured_array_compare

structured arrays with different byteorders do not compare
ENH: Replace exponentiation with cumulative product in np.vander

Speeds calculation up by ~3x for 100x100 matrices, and by ~45x for
1000x1000
Merge pull request #4568 from jaimefrio/cumprod-vander.

ENH: Replace exponentiation with cumulative product in np.vander
ENH: intern the constant python strings

Was always intended this way but not done due to a mistake in Python3
fix. Speeds up dictionary lookups a bit as string comparisons can be
skipped on hash collisions.
ENH: avoid searching for __numpy_ufunc__ if its a basic python type

Checking for the attribute is a very large bottlenecks for reductions.
dtype, out, keepdims will often be basic python types so the check can
be skipped.
Also add a couple missing types to helper function _is_basic_python_type
and move it into a header so it can be used in umath.
BUG: Masked arrays and apply_over_axes

Masked arrays version of apply_over_axes did not apply
function correctly to arrays with non-trivial masks.

Fixes #4461.
BUG: fix memory leaks and missing NULL checks

found by cpychecker gcc plugin
Merge pull request #4578 from juliantaylor/static-bugs

BUG: fix memory leaks and missing NULL checks
Merge pull request #4255 from juliantaylor/ufunc-attr-check

__numpy_ufunc__ check improvement
Merge pull request #4463 from abalkin/issue-4461

BUG: Masked arrays and apply_over_axes
ENH: Ensure that repr and str work for MaskedArray non-ndarray bases

For repr, use the name of the base class in output as "masked_<name>"
(with name=array for ndarray to match the previous implementation).
For str, insert masked_print_option in an ndarray view of the object
array that is created for string output, to avoid calling __setitem__
in the base class.  Add tests to ensure this works.
Merge pull request #4576 from mhvk/ma/subclass-printing

ENH: Ensure that repr and str work for MaskedArray non-ndarray bases
BUG: Explicitly reject nan values for p in binomial(n, p). Fixes #4571.

Adds check with np.isnan(p) and raises ValueError if check is positive.
Merge pull request #4587 from ddasilva/meltingwax/4571

BUG: Explicitly reject nan values for p in binomial(n, p).
ENH: Better error w/ line num for bad column count in np.loadtxt()

Resolves #2591. Adds more explicit error handling in line parsing loop.
Merge pull request #4588 from ddasilva/ddasilva/2591

ENH: Better error w/ line num for bad column count in np.loadtxt()
BUG: Prevent division by zero. Closes #650.
Merge pull request #4591 from szpy/bugfixes

BUG: Prevent division by zero. Closes #650.