Model design for nonparametric phylodynamic inference and applications to pathogen surveillance