Galaxy surveys, inhomogeneous re-ionization and dark energy