Cyclicity of periodic annulus and Hopf cyclicity in perturbing a hyper-elliptic Hamiltonian system with a degenerate heteroclinic loop