Adjustment of dtype for numpy 1.6