Generalized Riesz systems and orthonormal sequences in Krein spaces