BUG, TST: Fix tests of ma.count return type.

The masked array count method was fixed to use np.intp when doing sums.
The return type is always np.intp except for count(arr, axis=None) when
arr has no mask, in which case the return type is that of ndarray.size.

The test errors were noted in #4698.
BUG: searchsorted fails if sorter is not of type np.intp fixes #4698

The array being passed to the search function was not the one converted
to NPY_INTP, so it only worked if it was of that type to begin with.
Merge pull request #4708 from jaimefrio/sorter-bug

BUG: searchsorted fails if sorter is not of type np.intp fixes #4698
Merge pull request #4699 from charris/fix-ma.count-return-type-check

BUG, TST: Fix tests of ma.count return type.
BUG: core: allow scalar type richcompare to call ndarray-subclass methods

This makes the scalar richcmp behave exactly as
"array(self) <op> other". The difference comes in when "other" is an ndarray
subclass, in which case this change allows the subclass to override the
comparison operations via usual Python binop dispatch rules.
BUG: Fix string to int64 conversion on 32-bit platforms

closes gh-4575
Merge pull request #4711 from pv/scalar-richcmp-fix

BUG: core: allow scalar type richcompare to call ndarray-subclass methods
Merge pull request #4712 from juliantaylor/strtoll

BUG: Fix string to uint64 conversion on 32-bit platforms
BUG: reject too large seeds to RandomState

mtrand accepts seeds larger than 32 bit but silently truncates them back
to 32 bit. This can lead to accidentally getting the same random stream
for two different seeds, e.g. 1 and 1 + 2**40.
Merge pull request #4676 from juliantaylor/rand-seed-lim

BUG: reject too large seeds to RandomState