Oscillatory finite-time singularities in finance, population and rupture