Linearized Dynamics of Two-Dimensional Bubbly and Cavitating Flows over Slender Surfaces