The word dick has meant penis since the 1890s, but Chester Gould’s private detective “Dick Tracy” has no puerile subtext related to this word.
2011, Patrick Spedding, James Lambert, “Fanny Hill, Lord Fanny, and the Myth of Metonymy”, in Studies in Philology, volume 108, number 1, page 113