Functional Latent Dynamics for Irregularly Sampled Time Series Forecasting