Determinism and probability in the development of the cell theory