The Dirac operator on collapsing $S^1$-bundles