Probing small-scale cosmological fluctuations with the 21 cm forest: Effects of neutrino mass, running spectral index, and warm dark matter