Fix numarray 1.7 to 1.9