Multiatom and transit-time effects on photon-correlation measurements in resonance fluorescence