MAINT: stats: Simplified the calculation of Pearson's R.

* Removed the common factor 'n' from the numerator and denominator in
  the calcuation of Pearson's R.  (Closes the issue gh-2512.)
* Added basic tests of pearsonr. (All the existing tests were for perfect
  correlation or anticorrelation.)
* Modifed stats.mstats.pearsonr to not raise RuntimeWarnings when abs(r) == 1.