Fix problem arising in ESMPy tests with numpy v1.7.
Merge pull request #1043 from pp-mo/esmpy_fix_2

Fix problem arising in ESMPy tests with numpy v1.7.