Geometric phases and hidden symmetries in simple resonators.