Singularity structure of the two-point function in quantum field theory in curved spacetime