fixed a bug for numpy v<1.8.1 related to the continuing broken-ness of np.int64