check if dictionary is converted into an np.array in the right order