Abelian integrals and non-generic turning points