Temporary fix for NumPy 1.8's mean().
Made the NumPy 1.8 mean() fix official.
Temporary fix in the unit tests for NumPy 1.8.
Unit tests now pass with Python 2.5 (and still with 2.6 and 2.7).