Weak-Form Inference for Hybrid Dynamical Systems in Ecology