Spontaneous linearization and periodic solutions in Hopf and symmetric bifurcations