Complex Dynamics in Pendulum-Type Equations with Variable Length