A study of resonance production in the reaction K+p → K0pπ+ from 3 to 16 GeV/c